import request from '@/utils/request'

// 查询分页部门信息
export const getListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/department/set/page', { params })

// 创建部门
export const addListApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/department/set/add', data)

// 修改部门
export const editListApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/department/set/update', data)

// 删除部门
export const delListApi = (id) =>
  request.post(`/ecm-microservice-biz/ecm/department/set/delete?id=${id}`)
